package com.zbkj.crmeb.store.request;

import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;
import java.util.List;

import javax.validation.constraints.Min;
import javax.validation.constraints.NotNull;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.zbkj.crmeb.store.dto.StoreProductAttrDO;
import com.zbkj.crmeb.store.model.StoreProductAttr;

/**
 * <p>
 * 数据字典
 * </p>
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@ApiModel(value="KeyValueRequest 对象", description="数据字典")
public class KeyValueRequest implements Serializable {
    private static final long serialVersionUID = 1L;

    /**
     * key
     */
    private String keyK;
    /**
     * 值
     */
    private String value;
    /**
     * 描述
     */
    private String comment;
    /**
     * 类型
     */
    private String typeCode;
    /**
     * 类型列表
     */
    private List<String> typeCodeList;
    /**
     * 状态
     */
    private String status;

    /**
     * 是否从缓存拿
     */
    private Boolean cache;

    public Boolean getCache() {
        if(cache == null)
            return false;
        return cache;
    }

    public void setCache(Boolean cache) {
        this.cache = cache;
    }
}
